const request = require('../request/requst.js');

// 添加文章
export const save_article = (data) => {
    return request({
        url: '/index.php/html5/article/save_article',
        method: 'POST',
        data
    });
}

// 获取用户信息
export const get_user_info = (data) => {
    return request({
        url: '/index.php/html5/user/get_user_info',
        method: 'POST',
        data
    });
}

// 获取文章列表
export const get_article_list = (data) => {
    return request({
        url: '/index.php/html5/article/get_article_list',
        method: 'POST',
        data
    });
}

// 根据id获取文章
export const get_article = (data) => {
    return request({
        url: '/index.php/html5/article/get_article',
        method: 'POST',
        data
    });
}

// 根据id删除文章
export const del_article_url = (data) => {
    return request({
        url: '/index.php/html5/article/del_article_url',
        method: 'POST',
        data
    });
}

// 添加用户
export const save_user_info = (data) => {
    return request({
        url: '/index.php/html5/index/save_user',
        method: 'POST',
        data
    });
}

// 获取添加用户临时token
export const get_add_user_auth_token = (data) => {
    return request({
        url: '/index.php/html5/index/get_add_user_auth_token',
        method: 'POST',
        data
    });
}

// 获取诊断列表
export const get_zhenduan_list = (data) => {
    return request({
        url: '/index.php/html5/zhenduan/get_zhenduan_list',
        method: 'POST',
        data
    });
}

// 获取诊断列表
export const get_zhenduan_info = (data) => {
    return request({
        url: '/index.php/html5/zhenduan/get_zhenduan_info',
        method: 'POST',
        data
    });
}

// 获取医生列表
export const get_doc_tree  = (data) => {
	return request({
	    url: '/index.php/html5/zhenduan/get_doc_tree',
	    method: 'POST',
	    data
	});
}
// 前台医生诊断
export const doc1_save  = (data) => {
	return request({
	    url: '/index.php/html5/zhenduan/doc1_save',
	    method: 'POST',
	    data
	});
}
// 分配后台医生
export const fenpei_doc  = (data) => {
	return request({
	    url: '/index.php/html5/zhenduan/fenpei_doc',
	    method: 'POST',
	    data
	});
}
// 后台医生诊断
export const doc2_save  = (data) => {
	return request({
	    url: '/index.php/html5/zhenduan/doc2_save',
	    method: 'POST',
	    data
	});
}
// 获取药方列表
export const get_yaofang_list  = (data) => {
	return request({
	    url: '/index.php/html5/yaofang/get_yaofang_list',
	    method: 'POST',
	    data
	});
}
// 获取药房方详情
export const get_yaofang_info  = (data) => {
	return request({
	    url: '/index.php/html5/yaofang/get_yaofang_info',
	    method: 'POST',
	    data
	});
}
// 保存药房方详情
export const save_yaofang  = (data) => {
	return request({
	    url: '/index.php/html5/yaofang/save_yaofang',
	    method: 'POST',
	    data
	});
}

// 药师获取药方列表
export const yaoshi_get_yaofang_list  = (data) => {
	return request({
	    url: '/index.php/html5/yaoshi/get_yaofang_list',
	    method: 'POST',
	    data
	});
}
// 药师获取药方详情
export const yaoshi_get_yaofang_info  = (data) => {
	return request({
	    url: '/index.php/html5/yaoshi/get_yaofang',
	    method: 'POST',
	    data
	});
}
// 药师完成打包
export const yaoshi_dabao  = (data) => {
	return request({
	    url: '/index.php/html5/yaoshi/get_yaofang_list',
	    method: 'POST',
	    data
	});
}


// 订单列表
export const order_list  = (data) => {
	return request({
	    url: '/index.php/html5/yaoshi/get_yaofang_list',
	    method: 'POST',
	    data
	});
}


// 获取分类列表
export const getClassesList  = (data) => {
	return request({
	    url: '/index.php/html5/classes/getClassesList',
	    method: 'POST',
	    data
	});
}
// 保存分类信息
export const saveClasses  = (data) => {
	return request({
	    url: '/index.php/html5/classes/saveClasses',
	    method: 'POST',
	    data
	});
}

// 保存分类信息
export const logout  = (data) => {
	return request({
	    url: '/index.php/html5/login/logout',
	    method: 'POST',
	    data
	});
}


